import { roleList } from "@/api/system/role";
import { ref } from "vue";

export const useCommonRequest = () => {
    let roleData = ref([])
    const getRoleData = async () => {
        let res = await roleList({})
        roleData.value = res.data.list
    }

    return {
        roleData,
        getRoleData,
    }
}


